package com.zcoj.pojo.Dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chenbin
 * @version 1.0
 * @description: TODO
 * @date 2023/3/30 15:49
 */
@Data
@ApiModel("题目来源表")
public class Source implements Serializable {
 private static final long serialVersionUID = 2892248514883451461L;

 @ApiModelProperty(value = "id")
 @TableId(type = IdType.AUTO)
 private Integer id;

 @ApiModelProperty(value = "名称")
 private String name;


 @ApiModelProperty(value = "创建时间")
 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 @TableField(fill = FieldFill.INSERT)
 private Date createTime;

 @ApiModelProperty(value = "更新时间")
 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 @TableField(fill = FieldFill.INSERT_UPDATE)
 private Date updateTime;
}
